package fr.miage.ressource;

public class Humain {
	
	private String nom;
	private String prenom;
	private Integer coef;
	private Integer age;
	
	public Humain (String monNom, String monPrenom, Integer monCoef, Integer monAge){
		this.setNom(monNom);
		this.setPrenom(monPrenom);
		this.setCoef(monCoef);
		this.setAge(monAge);
	}

	public boolean ageInferieurNombreEnParametre(Integer monAge){
		if (age < monAge){
			return true;
		}else {
			return false;
		}
	}
	
	public boolean coefInferieurNombreEnParametre(Integer monCoef){
		if (coef < monCoef){
			return true;
		}else {
			return false;
		}
	}
	
	public void setNom(String nom) {
		this.nom = nom;
	}

	public String getNom() {
		return nom;
	}

	public void setPrenom(String prenom) {
		this.prenom = prenom;
	}

	public String getPrenom() {
		return prenom;
	}

	public void setCoef(Integer coef) {
		this.coef = coef;
	}

	public Integer getCoef() {
		return coef;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Integer getAge() {
		return age;
	}

}
